<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepageinvite
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: AdminglobalController.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitepageinvite_AdminGlobalController extends Core_Controller_Action_Admin {
	
	public function globalAction() {
		if ($this->getRequest ()->isPost ()) {
			$sitepageKeyVeri = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'sitepage.lsettings', null );
			if (! empty ( $sitepageKeyVeri )) {
				Engine_Api::_ ()->getApi ( 'settings', 'core' )->setSetting ( 'sitepage.lsettings', trim ( $sitepageKeyVeri ) );
			}
			if ($_POST ['sitepageinvite_lsettings']) {
				$_POST ['sitepageinvite_lsettings'] = trim ( $_POST ['sitepageinvite_lsettings'] );
			}
		}
		$onactive_disabled = array ('yahoo_settings_temp', 'submit', 'pageinvite_show_webmail', 'sitepageinvite_manifestUrl' );
		$afteractive_disabled = array ('submit_lsetting', 'environment_mode', 'include_in_package' );
		include APPLICATION_PATH . '/application/modules/Sitepageinvite/controllers/license/license1.php';
	}
	
	//SHOWING THE PLUGIN RELETED QUESTIONS AND ANSWERS
	public function faqAction() {
		$this->view->navigation = $navigation = Engine_Api::_ ()->getApi ( 'menus', 'core' )->getNavigation ( 'sitepageinvite_admin_main', array (), 'sitepageinvite_admin_main_faq' );
	}
	
	public function readmeAction() {
	
	}
	
	public function appconfigsAction() {
		$this->view->navigation = $navigation = Engine_Api::_ ()->getApi ( 'menus', 'core' )->getNavigation ( 'sitepageinvite_admin_main', array (), 'sitepageinvite_admin_main_global' );
	}

}

?>